Skip to content

Add delete_playlist support for Python SDK 3.1.0 - #3

Merged
wenbinf merged 1 commit into
mainfrom
fix/delete-playlist
Sep 25, 2026
Merged

wenbinf merged 1 commit into
mainfrom
fix/delete-playlist

Conversation

@wenbinf

@wenbinf wenbinf commented Sep 25, 2026

Copy link
Copy Markdown
Member

Adds client.delete_playlist(id=...) for DELETE /playlists/{id} and prepares Python SDK 3.1.0. It keeps the existing keyword-argument interface and requests.Response return value. The generated README explains permanent deletion and the developer's responsibility to add a confirmation step in their application's UI.

Regenerates the method and API contract; extends coverage for encoded playlist identifiers, missing identifiers, bodyless DELETE requests, and preventing retries of failed write responses. Adds a public-mock deletion test and removes the old hard-coded version from the User-Agent assertion.

Validation:

  • 84 offline tests passed on each of Python 3.10 and 3.14; 99% coverage on 3.14.
  • 13 integration tests passed against the credential-free public mock API.
  • Black, Flake8, deterministic generation, and sync.py python --check passed.
  • Wheel and source distribution built and passed uv publish --dry-run; the wheel was installed and verified outside the checkout with mocked HTTP.

PyPI publication is separate. The monorepo keeps Python documentation availability at 3.0.0 until 3.1.0 is published.

@wenbinf
wenbinf merged commit 19a4448 into main Sep 25, 2026
4 checks passed
@wenbinf
wenbinf deleted the fix/delete-playlist branch September 25, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant